<html>
<head><meta charset="utf-8"><title>profiling per source code location · t-compiler/wg-self-profile · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/index.html">t-compiler/wg-self-profile</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/profiling.20per.20source.20code.20location.html">profiling per source code location</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="160362670"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/profiling%20per%20source%20code%20location/near/160362670" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/profiling.20per.20source.20code.20location.html#160362670">(Mar 09 2019 at 11:04)</a>:</h4>
<p>BTW, one thing we had talked about was adding the ability to organize the profile per <code>DefId</code> or source-code location as well, so that people could get an idea what part of their programs are forcing compilation to take a long time. This just came up when I was talking to <span class="user-mention" data-user-id="116609">@Frank McSherry</span>, so it popped in my mind again -- I know it's not on the MVP plans, but do we still have this down as a kind of "eventually" sort of item?</p>



<a name="160362673"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/profiling%20per%20source%20code%20location/near/160362673" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/profiling.20per.20source.20code.20location.html#160362673">(Mar 09 2019 at 11:04)</a>:</h4>
<p><span class="user-mention" data-user-id="116609">@Frank McSherry</span> may have some good ideas of what specifically they want, as well. I remember <span class="user-mention" data-user-id="116015">@Alex Crichton</span> also being interested.</p>



<a name="160374010"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/profiling%20per%20source%20code%20location/near/160374010" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/profiling.20per.20source.20code.20location.html#160374010">(Mar 09 2019 at 16:31)</a>:</h4>
<p><span class="user-mention" data-user-id="116015">@Alex Crichton</span> and <span class="user-mention" data-user-id="119235">@David Tolnay</span> asked me about this at All Hands. We should have some kind of place to track these longer term ideas. Right now we're blocked on standardizing the export format from <code>rustc</code>. After that happens, a lot of these tools could probably be developed rather independently. Which might be a good opportunity for new people wanting to contribute.</p>



<a name="160463777"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/profiling%20per%20source%20code%20location/near/160463777" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mw <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/profiling.20per.20source.20code.20location.html#160463777">(Mar 11 2019 at 09:37)</a>:</h4>
<p>profiling per query key is definitely planned. Source-code locations I don't know...</p>



<a name="160713939"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/profiling%20per%20source%20code%20location/near/160713939" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/profiling.20per.20source.20code.20location.html#160713939">(Mar 13 2019 at 18:20)</a>:</h4>
<p>I think per-key is roughly the same thing as source-code locations</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>